
#ifndef   __COMMUNICATION_MODULE
#define   __COMMUNICATION_MODULE

#define   MODEM_REC_BUFFER_SIZE		256 
#define   AUX_PORT_REC_BUFFER_SIZE	204

#define   PUTCHAR(CH)		while(!(U0LSR & 0x20)); U0THR = CH

#define   AUX_PORT_MESSAGE_SIZE		256
#define   MODEM_MESSGAGE_SIZE			256
#define   MODEM_BUFFER_SIZE			1024

extern char *Modem_Message;
extern char *AuxPort_Message;

extern char ModemBuffer[MODEM_BUFFER_SIZE];


void Modem_Receiver ( void );
void Aux_Port_Receiver ( void );
void receivers_init ( void );

/* Communication */
void Drive_Receivers( void );
void modem_clear_buffer ( void );

#endif

